/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.yourorghere;

import javax.media.opengl.GLJPanel;
import javax.swing.JFrame;

/**
 *
 * @author henriquediomede
 */
public class Main 
{
     public static void main(String[] args) 
     {
        JFrame frame = new JFrame("Simple JOGL Application");
        GLJPanel panel = new GLJPanel();
        Keyboard keyboard = new Keyboard();
        CarGL game = new CarGL(640,480,panel);
        panel.addGLEventListener(game);
        frame.add(panel);
        frame.addKeyListener(keyboard);
        frame.setSize(640, 480);
        frame.setLocationRelativeTo(null);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
        Thread gameThread = new Thread(game);
        gameThread.start();
        
     }
}
